<%-- 
    Document   : ThanhPhoContent
    Created on : Oct 20, 2011, 4:51:43 PM
    Author     : Admin
--%>

<%@page import="model.pojo.Thanhpho"%>
<%@page import="java.util.List"%>
<%@page import="model.dao.thanhPhoDAO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<form id="frmThanhPho" name="frmThanhPho" method="post" action="">
    <table width="550" border="0" align="center">
        <tr align="center">
            <td width="20"><strong>Mã</strong></td>
            <td width="150"><strong>Tên Thành Phố</strong></td>
            <td width="85"><strong>Bắt Đầu</strong></td>
            <td width="210"><strong>Ngày Tạo</strong></td>
            <td width="42"><strong>Edit</strong></td>
            <td width="42"><strong>Xóa</strong></td>
        </tr>
        <%
            List<Thanhpho> ds = thanhPhoDAO.layDanhSachThanhPho();
            for (int i = 0; i < ds.size(); i++) {
                Thanhpho tp = ds.get(i);

        %>
        <tr align="center">
            <td><%=tp.getId()%></td>
            <td><%=tp.getTenThanhPho()%></td>
            <td><%=tp.getDaBat()%></td>
            <td><%=tp.getNgayTao()%></td>
            <td><a href="ThanhPhoController?Action=EditThanhPho&id=<%=tp.getId()%>"><input type="submit" name="btnEdit" value="Edit"></input></a></td>
            <td><a href="#"><input type="submit"  name="btnXoa" value="Xóa"></input></a></td>
            
        </tr>
        <%}%>
    </table>
</form>